
package com.jf.cloud.product.feign;

import com.jf.cloud.api.product.feign.SpuBrowseLogFeignClient;
import com.jf.cloud.common.response.ServerResponseEntity;
import com.jf.cloud.product.service.SpuBrowseLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.v3.oas.annotations.Hidden;

import java.util.List;

/**
 * @author zz
 * @date 2020/12/8
 */
@RestController
@Hidden
public class SpuBrowseLogLogFeignController implements SpuBrowseLogFeignClient {

    @Autowired
    private SpuBrowseLogService spuBrowseLogService;

    @Override
    public ServerResponseEntity<List<Long>> recentBrowse(Long userId, Long shopId) {
        return ServerResponseEntity.success(spuBrowseLogService.recentBrowse(userId,shopId));
    }
}
